package org.jeecg.modules.compilation.service;

import org.jeecg.modules.compilation.dto.AddNoteDTO;
import org.jeecg.modules.compilation.dto.NoteDTO;
import org.jeecg.modules.compilation.dto.NoteFileDTO;
import org.jeecg.modules.compilation.entity.CiNote;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.compilation.dto.NotesDTO;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * @Description: ci_note
 * @Author: jeecg-boot
 * @Date:   2024-03-15
 * @Version: V1.0
 */
public interface ICiNoteService extends IService<CiNote> {

    //获取笔记首页列表
    List<NotesDTO> getNoteCount(String userId);

    //得到同一文件下的笔记
    List<NoteFileDTO> getnote(String documentSn);

    //添加与编辑笔记
    Boolean addOrUpdate(CiNote ciNote);

    //笔记查询
    List<NoteDTO> searchNoteList(String noteName) throws IOException;

//    //新增和编辑笔记
//    Boolean addOrUpdate(AddNoteDTO dto);
}
